package com.morequick.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.morequick.dao.ProductDao;
import com.morequick.model.Product;
import com.morequick.service.ProductService;

/**
 * 博主Service实现类
 * @author Administrator
 *
 */
@Service("productService")
public class ProductServiceImpl implements ProductService{

	@Resource
	private ProductDao productDao;

	@Override
	public List<Product> getProduct(Map<String, Object> map) {

		return productDao.getProduct(map);
	}

	@Override
	public Integer add(Product product) {
		return productDao.add(product);
	}

	@Override
	public Product findById(Integer id) {
		
		return productDao.findById(id);
	}

	@Override
	public Integer deleteAd(List<String> list) {
		return productDao.deleteAd(list);
	}

	@Override
	public Integer update(Product product) {
		
		return productDao.update(product);
	}

	@Override
	public Integer delete(Integer id) {
		return productDao.delete(id);
	}


}
